00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef WSHYGP_HPP
00011 #define WSHYGP_HPP
00012 #include "gridpack/component/data_collection.hpp"
00013 #include "gridpack/parser/dictionary.hpp"
00014 #include "gridpack/utilities/string_utils.hpp"
00015 namespace gridpack {
00016 namespace parser {
00017 template <class _data_struct> class WshygpParser
00018 {
00019 public:
00020
00021
00022
00023 explicit WshygpParser()
00024 {
00025 }
00026
00027
00028
00029
00030 virtual ~WshygpParser()
00031 {
00032 }
00033
00034
00035
00036
00037
00038
00039
00040 void extract(_data_struct &data_struct,
00041 gridpack::component::DataCollection *data, int g_id)
00042 {
00043 double rval;
00044 bool bval;
00045
00046 if (!data->getValue(HAS_GOVERNOR,&bval,g_id)) {
00047 data->addValue(HAS_GOVERNOR, true, g_id);
00048 } else {
00049 data->setValue(HAS_GOVERNOR, true, g_id);
00050 }
00051
00052
00053 std::string stmp;
00054 if (!data->getValue(GOVERNOR_MODEL, &stmp, g_id)) {
00055 data->addValue(GOVERNOR_MODEL, data_struct.model, g_id);
00056 } else {
00057 data->setValue(GOVERNOR_MODEL, data_struct.model, g_id);
00058 }
00059
00060
00061 if (!data->getValue(GOVERNOR_DB1,&rval,g_id)) {
00062 data->addValue(GOVERNOR_DB1, data_struct.db1, g_id);
00063 } else {
00064 data->setValue(GOVERNOR_DB1, data_struct.db1, g_id);
00065 }
00066
00067
00068 if (!data->getValue(GOVERNOR_ERR,&rval,g_id)) {
00069 data->addValue(GOVERNOR_ERR, data_struct.err, g_id);
00070 } else {
00071 data->setValue(GOVERNOR_ERR, data_struct.err, g_id);
00072 }
00073
00074
00075 if (!data->getValue(GOVERNOR_TD,&rval,g_id)) {
00076 data->addValue(GOVERNOR_TD, data_struct.gv_td, g_id);
00077 } else {
00078 data->setValue(GOVERNOR_TD, data_struct.gv_td, g_id);
00079 }
00080
00081
00082 if (!data->getValue(GOVERNOR_KI,&rval,g_id)) {
00083 data->addValue(GOVERNOR_KI, data_struct.gv_ki, g_id);
00084 } else {
00085 data->setValue(GOVERNOR_KI, data_struct.gv_ki, g_id);
00086 }
00087
00088
00089 if (!data->getValue(GOVERNOR_TF,&rval,g_id)) {
00090 data->addValue(GOVERNOR_TF, data_struct.gv_tf, g_id);
00091 } else {
00092 data->setValue(GOVERNOR_TF, data_struct.gv_tf, g_id);
00093 }
00094
00095
00096 if (!data->getValue(GOVERNOR_KD,&rval,g_id)) {
00097 data->addValue(GOVERNOR_KD, data_struct.gv_kd, g_id);
00098 } else {
00099 data->setValue(GOVERNOR_KD, data_struct.gv_kd, g_id);
00100 }
00101
00102
00103 if (!data->getValue(GOVERNOR_KP,&rval,g_id)) {
00104 data->addValue(GOVERNOR_KP, data_struct.gv_kp, g_id);
00105 } else {
00106 data->setValue(GOVERNOR_KP, data_struct.gv_kp, g_id);
00107 }
00108
00109
00110 if (!data->getValue(GOVERNOR_R,&rval,g_id)) {
00111 data->addValue(GOVERNOR_R, data_struct.gv_r, g_id);
00112 } else {
00113 data->setValue(GOVERNOR_R, data_struct.gv_r, g_id);
00114 }
00115
00116
00117 if (!data->getValue(GOVERNOR_TT,&rval,g_id)) {
00118 data->addValue(GOVERNOR_TT, data_struct.gv_tt, g_id);
00119 } else {
00120 data->setValue(GOVERNOR_TT, data_struct.gv_tt, g_id);
00121 }
00122
00123
00124 if (!data->getValue(GOVERNOR_KG,&rval,g_id)) {
00125 data->addValue(GOVERNOR_KG, data_struct.gv_kg, g_id);
00126 } else {
00127 data->setValue(GOVERNOR_KG, data_struct.gv_kg, g_id);
00128 }
00129
00130
00131 if (!data->getValue(GOVERNOR_TP,&rval,g_id)) {
00132 data->addValue(GOVERNOR_TP, data_struct.gv_tp, g_id);
00133 } else {
00134 data->setValue(GOVERNOR_TP, data_struct.gv_tp, g_id);
00135 }
00136
00137
00138 if (!data->getValue(GOVERNOR_VELOPEN,&rval,g_id)) {
00139 data->addValue(GOVERNOR_VELOPEN, data_struct.velopen, g_id);
00140 } else {
00141 data->setValue(GOVERNOR_VELOPEN, data_struct.velopen, g_id);
00142 }
00143
00144
00145 if (!data->getValue(GOVERNOR_VELCLOSE,&rval,g_id)) {
00146 data->addValue(GOVERNOR_VELCLOSE, data_struct.velclose, g_id);
00147 } else {
00148 data->setValue(GOVERNOR_VELCLOSE, data_struct.velclose, g_id);
00149 }
00150
00151
00152 if (!data->getValue(GOVERNOR_PMAX,&rval,g_id)) {
00153 data->addValue(GOVERNOR_PMAX, data_struct.pmax, g_id);
00154 } else {
00155 data->setValue(GOVERNOR_PMAX, data_struct.pmax, g_id);
00156 }
00157
00158
00159 if (!data->getValue(GOVERNOR_PMIN,&rval,g_id)) {
00160 data->addValue(GOVERNOR_PMIN, data_struct.pmin, g_id);
00161 } else {
00162 data->setValue(GOVERNOR_PMIN, data_struct.pmin, g_id);
00163 }
00164
00165
00166 if (!data->getValue(GOVERNOR_DB2,&rval,g_id)) {
00167 data->addValue(GOVERNOR_DB2, data_struct.db2, g_id);
00168 } else {
00169 data->setValue(GOVERNOR_DB2, data_struct.db2, g_id);
00170 }
00171
00172
00173 if (!data->getValue(GOVERNOR_GV1,&rval,g_id)) {
00174 data->addValue(GOVERNOR_GV1, data_struct.gv1, g_id);
00175 } else {
00176 data->setValue(GOVERNOR_GV1, data_struct.gv1, g_id);
00177 }
00178
00179
00180 if (!data->getValue(GOVERNOR_PGV1,&rval,g_id)) {
00181 data->addValue(GOVERNOR_PGV1, data_struct.pgv1, g_id);
00182 } else {
00183 data->setValue(GOVERNOR_PGV1, data_struct.pgv1, g_id);
00184 }
00185
00186
00187 if (!data->getValue(GOVERNOR_GV2,&rval,g_id)) {
00188 data->addValue(GOVERNOR_GV2, data_struct.gv2, g_id);
00189 } else {
00190 data->setValue(GOVERNOR_GV2, data_struct.gv2, g_id);
00191 }
00192
00193
00194 if (!data->getValue(GOVERNOR_PGV2,&rval,g_id)) {
00195 data->addValue(GOVERNOR_PGV2, data_struct.pgv2, g_id);
00196 } else {
00197 data->setValue(GOVERNOR_PGV2, data_struct.pgv2, g_id);
00198 }
00199
00200
00201 if (!data->getValue(GOVERNOR_GV3,&rval,g_id)) {
00202 data->addValue(GOVERNOR_GV3, data_struct.gv3, g_id);
00203 } else {
00204 data->setValue(GOVERNOR_GV3, data_struct.gv3, g_id);
00205 }
00206
00207
00208 if (!data->getValue(GOVERNOR_PGV3,&rval,g_id)) {
00209 data->addValue(GOVERNOR_PGV3, data_struct.pgv3, g_id);
00210 } else {
00211 data->setValue(GOVERNOR_PGV3, data_struct.pgv3, g_id);
00212 }
00213
00214
00215 if (!data->getValue(GOVERNOR_GV4,&rval,g_id)) {
00216 data->addValue(GOVERNOR_GV4, data_struct.gv4, g_id);
00217 } else {
00218 data->setValue(GOVERNOR_GV4, data_struct.gv4, g_id);
00219 }
00220
00221
00222 if (!data->getValue(GOVERNOR_PGV4,&rval,g_id)) {
00223 data->addValue(GOVERNOR_PGV4, data_struct.pgv4, g_id);
00224 } else {
00225 data->setValue(GOVERNOR_PGV4, data_struct.pgv4, g_id);
00226 }
00227
00228
00229 if (!data->getValue(GOVERNOR_GV5,&rval,g_id)) {
00230 data->addValue(GOVERNOR_GV5, data_struct.gv5, g_id);
00231 } else {
00232 data->setValue(GOVERNOR_GV5, data_struct.gv5, g_id);
00233 }
00234
00235
00236 if (!data->getValue(GOVERNOR_PGV5,&rval,g_id)) {
00237 data->addValue(GOVERNOR_PGV5, data_struct.pgv5, g_id);
00238 } else {
00239 data->setValue(GOVERNOR_PGV5, data_struct.pgv5, g_id);
00240 }
00241
00242
00243 if (!data->getValue(GOVERNOR_ATURB,&rval,g_id)) {
00244 data->addValue(GOVERNOR_ATURB, data_struct.aturb, g_id);
00245 } else {
00246 data->setValue(GOVERNOR_ATURB, data_struct.aturb, g_id);
00247 }
00248
00249
00250 if (!data->getValue(GOVERNOR_BTURB,&rval,g_id)) {
00251 data->addValue(GOVERNOR_BTURB, data_struct.bturb, g_id);
00252 } else {
00253 data->setValue(GOVERNOR_BTURB, data_struct.bturb, g_id);
00254 }
00255
00256
00257 if (!data->getValue(GOVERNOR_TTURB,&rval,g_id)) {
00258 data->addValue(GOVERNOR_TTURB, data_struct.tturb, g_id);
00259 } else {
00260 data->setValue(GOVERNOR_TTURB, data_struct.tturb, g_id);
00261 }
00262
00263
00264 if (!data->getValue(GOVERNOR_TRATE,&rval,g_id)) {
00265 data->addValue(GOVERNOR_TRATE, data_struct.trate, g_id);
00266 } else {
00267 data->setValue(GOVERNOR_TRATE, data_struct.trate, g_id);
00268 }
00269 }
00270
00271
00272
00273
00274
00275
00276
00277 void parse(std::vector<std::string> &split_line,
00278 gridpack::component::DataCollection *data, int g_id)
00279 {
00280 double rval;
00281 int nstr = split_line.size();
00282 bool bval;
00283
00284 if (!data->getValue(HAS_GOVERNOR,&bval,g_id)) {
00285 data->addValue(HAS_GOVERNOR, true, g_id);
00286 } else {
00287 data->setValue(HAS_GOVERNOR, true, g_id);
00288 }
00289
00290
00291 std::string stmp, model;
00292 gridpack::utility::StringUtils util;
00293 model = util.trimQuotes(split_line[1]);
00294 util.toUpper(model);
00295 if (!data->getValue(GOVERNOR_MODEL,&stmp,g_id)) {
00296 data->addValue(GOVERNOR_MODEL, model.c_str(), g_id);
00297 } else {
00298 data->setValue(GOVERNOR_MODEL, model.c_str(), g_id);
00299 }
00300
00301
00302 if (nstr > 3) {
00303 if (!data->getValue(GOVERNOR_DB1,&rval,g_id)) {
00304 data->addValue(GOVERNOR_DB1,
00305 atof(split_line[3].c_str()), g_id);
00306 } else {
00307 data->setValue(GOVERNOR_DB1,
00308 atof(split_line[3].c_str()), g_id);
00309 }
00310 }
00311
00312
00313 if (nstr > 4) {
00314 if (!data->getValue(GOVERNOR_ERR,&rval,g_id)) {
00315 data->addValue(GOVERNOR_ERR,
00316 atof(split_line[4].c_str()), g_id);
00317 } else {
00318 data->setValue(GOVERNOR_ERR,
00319 atof(split_line[4].c_str()), g_id);
00320 }
00321 }
00322
00323
00324 if (nstr > 5) {
00325 if (!data->getValue(GOVERNOR_TD,&rval,g_id)) {
00326 data->addValue(GOVERNOR_TD,
00327 atof(split_line[5].c_str()), g_id);
00328 } else {
00329 data->setValue(GOVERNOR_TD,
00330 atof(split_line[5].c_str()), g_id);
00331 }
00332 }
00333
00334
00335 if (nstr > 6) {
00336 if (!data->getValue(GOVERNOR_KI,&rval,g_id)) {
00337 data->addValue(GOVERNOR_KI,
00338 atof(split_line[6].c_str()), g_id);
00339 } else {
00340 data->setValue(GOVERNOR_KI,
00341 atof(split_line[6].c_str()), g_id);
00342 }
00343 }
00344
00345
00346 if (nstr > 7) {
00347 if (!data->getValue(GOVERNOR_TF,&rval,g_id)) {
00348 data->addValue(GOVERNOR_TF,
00349 atof(split_line[7].c_str()), g_id);
00350 } else {
00351 data->setValue(GOVERNOR_TF,
00352 atof(split_line[7].c_str()), g_id);
00353 }
00354 }
00355
00356
00357 if (nstr > 8) {
00358 if (!data->getValue(GOVERNOR_KD,&rval,g_id)) {
00359 data->addValue(GOVERNOR_KD,
00360 atof(split_line[8].c_str()), g_id);
00361 } else {
00362 data->setValue(GOVERNOR_KD,
00363 atof(split_line[8].c_str()), g_id);
00364 }
00365 }
00366
00367
00368 if (nstr > 9) {
00369 if (!data->getValue(GOVERNOR_KP,&rval,g_id)) {
00370 data->addValue(GOVERNOR_KP,
00371 atof(split_line[9].c_str()), g_id);
00372 } else {
00373 data->setValue(GOVERNOR_KP,
00374 atof(split_line[9].c_str()), g_id);
00375 }
00376 }
00377
00378
00379 if (nstr > 10) {
00380 if (!data->getValue(GOVERNOR_R,&rval,g_id)) {
00381 data->addValue(GOVERNOR_R,
00382 atof(split_line[10].c_str()), g_id);
00383 } else {
00384 data->setValue(GOVERNOR_R,
00385 atof(split_line[10].c_str()), g_id);
00386 }
00387 }
00388
00389
00390 if (nstr > 11) {
00391 if (!data->getValue(GOVERNOR_TT,&rval,g_id)) {
00392 data->addValue(GOVERNOR_TT,
00393 atof(split_line[11].c_str()), g_id);
00394 } else {
00395 data->setValue(GOVERNOR_TT,
00396 atof(split_line[11].c_str()), g_id);
00397 }
00398 }
00399
00400
00401 if (nstr > 12) {
00402 if (!data->getValue(GOVERNOR_KG,&rval,g_id)) {
00403 data->addValue(GOVERNOR_KG,
00404 atof(split_line[12].c_str()), g_id);
00405 } else {
00406 data->setValue(GOVERNOR_KG,
00407 atof(split_line[12].c_str()), g_id);
00408 }
00409 }
00410
00411
00412 if (nstr > 13) {
00413 if (!data->getValue(GOVERNOR_TP,&rval,g_id)) {
00414 data->addValue(GOVERNOR_TP,
00415 atof(split_line[13].c_str()), g_id);
00416 } else {
00417 data->setValue(GOVERNOR_TP,
00418 atof(split_line[13].c_str()), g_id);
00419 }
00420 }
00421
00422
00423 if (nstr > 14) {
00424 if (!data->getValue(GOVERNOR_VELOPEN,&rval,g_id)) {
00425 data->addValue(GOVERNOR_VELOPEN,
00426 atof(split_line[14].c_str()), g_id);
00427 } else {
00428 data->setValue(GOVERNOR_VELOPEN,
00429 atof(split_line[14].c_str()), g_id);
00430 }
00431 }
00432
00433
00434 if (nstr > 15) {
00435 if (!data->getValue(GOVERNOR_VELCLOSE,&rval,g_id)) {
00436 data->addValue(GOVERNOR_VELCLOSE,
00437 atof(split_line[15].c_str()), g_id);
00438 } else {
00439 data->setValue(GOVERNOR_VELCLOSE,
00440 atof(split_line[15].c_str()), g_id);
00441 }
00442 }
00443
00444
00445 if (nstr > 16) {
00446 if (!data->getValue(GOVERNOR_PMAX,&rval,g_id)) {
00447 data->addValue(GOVERNOR_PMAX,
00448 atof(split_line[16].c_str()), g_id);
00449 } else {
00450 data->setValue(GOVERNOR_PMAX,
00451 atof(split_line[16].c_str()), g_id);
00452 }
00453 }
00454
00455
00456 if (nstr > 17) {
00457 if (!data->getValue(GOVERNOR_PMIN,&rval,g_id)) {
00458 data->addValue(GOVERNOR_PMIN,
00459 atof(split_line[17].c_str()), g_id);
00460 } else {
00461 data->setValue(GOVERNOR_PMIN,
00462 atof(split_line[17].c_str()), g_id);
00463 }
00464 }
00465
00466
00467 if (nstr > 18) {
00468 if (!data->getValue(GOVERNOR_DB2,&rval,g_id)) {
00469 data->addValue(GOVERNOR_DB2,
00470 atof(split_line[18].c_str()), g_id);
00471 } else {
00472 data->setValue(GOVERNOR_DB2,
00473 atof(split_line[18].c_str()), g_id);
00474 }
00475 }
00476
00477
00478 if (nstr > 19) {
00479 if (!data->getValue(GOVERNOR_GV1,&rval,g_id)) {
00480 data->addValue(GOVERNOR_GV1,
00481 atof(split_line[19].c_str()), g_id);
00482 } else {
00483 data->setValue(GOVERNOR_GV1,
00484 atof(split_line[19].c_str()), g_id);
00485 }
00486 }
00487
00488
00489 if (nstr > 20) {
00490 if (!data->getValue(GOVERNOR_PGV1,&rval,g_id)) {
00491 data->addValue(GOVERNOR_PGV1,
00492 atof(split_line[20].c_str()), g_id);
00493 } else {
00494 data->setValue(GOVERNOR_PGV1,
00495 atof(split_line[20].c_str()), g_id);
00496 }
00497 }
00498
00499
00500 if (nstr > 21) {
00501 if (!data->getValue(GOVERNOR_GV2,&rval,g_id)) {
00502 data->addValue(GOVERNOR_GV2,
00503 atof(split_line[21].c_str()), g_id);
00504 } else {
00505 data->setValue(GOVERNOR_GV2,
00506 atof(split_line[21].c_str()), g_id);
00507 }
00508 }
00509
00510
00511 if (nstr > 22) {
00512 if (!data->getValue(GOVERNOR_PGV2,&rval,g_id)) {
00513 data->addValue(GOVERNOR_PGV2,
00514 atof(split_line[22].c_str()), g_id);
00515 } else {
00516 data->setValue(GOVERNOR_PGV2,
00517 atof(split_line[22].c_str()), g_id);
00518 }
00519 }
00520
00521
00522 if (nstr > 23) {
00523 if (!data->getValue(GOVERNOR_GV3,&rval,g_id)) {
00524 data->addValue(GOVERNOR_GV3,
00525 atof(split_line[23].c_str()), g_id);
00526 } else {
00527 data->setValue(GOVERNOR_GV3,
00528 atof(split_line[23].c_str()), g_id);
00529 }
00530 }
00531
00532
00533 if (nstr > 24) {
00534 if (!data->getValue(GOVERNOR_PGV3,&rval,g_id)) {
00535 data->addValue(GOVERNOR_PGV3,
00536 atof(split_line[24].c_str()), g_id);
00537 } else {
00538 data->setValue(GOVERNOR_PGV3,
00539 atof(split_line[24].c_str()), g_id);
00540 }
00541 }
00542
00543
00544 if (nstr > 25) {
00545 if (!data->getValue(GOVERNOR_GV4,&rval,g_id)) {
00546 data->addValue(GOVERNOR_GV4,
00547 atof(split_line[25].c_str()), g_id);
00548 } else {
00549 data->setValue(GOVERNOR_GV4,
00550 atof(split_line[25].c_str()), g_id);
00551 }
00552 }
00553
00554
00555 if (nstr > 26) {
00556 if (!data->getValue(GOVERNOR_PGV4,&rval,g_id)) {
00557 data->addValue(GOVERNOR_PGV4,
00558 atof(split_line[26].c_str()), g_id);
00559 } else {
00560 data->setValue(GOVERNOR_PGV4,
00561 atof(split_line[26].c_str()), g_id);
00562 }
00563 }
00564
00565
00566 if (nstr > 27) {
00567 if (!data->getValue(GOVERNOR_GV5,&rval,g_id)) {
00568 data->addValue(GOVERNOR_GV5,
00569 atof(split_line[27].c_str()), g_id);
00570 } else {
00571 data->setValue(GOVERNOR_GV5,
00572 atof(split_line[27].c_str()), g_id);
00573 }
00574 }
00575
00576
00577 if (nstr > 28) {
00578 if (!data->getValue(GOVERNOR_PGV5,&rval,g_id)) {
00579 data->addValue(GOVERNOR_PGV5,
00580 atof(split_line[28].c_str()), g_id);
00581 } else {
00582 data->setValue(GOVERNOR_PGV5,
00583 atof(split_line[28].c_str()), g_id);
00584 }
00585 }
00586
00587
00588 if (nstr > 29) {
00589 if (!data->getValue(GOVERNOR_ATURB,&rval,g_id)) {
00590 data->addValue(GOVERNOR_ATURB,
00591 atof(split_line[29].c_str()), g_id);
00592 } else {
00593 data->setValue(GOVERNOR_ATURB,
00594 atof(split_line[29].c_str()), g_id);
00595 }
00596 }
00597
00598
00599 if (nstr > 30) {
00600 if (!data->getValue(GOVERNOR_BTURB,&rval,g_id)) {
00601 data->addValue(GOVERNOR_BTURB,
00602 atof(split_line[30].c_str()), g_id);
00603 } else {
00604 data->setValue(GOVERNOR_BTURB,
00605 atof(split_line[30].c_str()), g_id);
00606 }
00607 }
00608
00609
00610 if (nstr > 31) {
00611 if (!data->getValue(GOVERNOR_TTURB,&rval,g_id)) {
00612 data->addValue(GOVERNOR_TTURB,
00613 atof(split_line[31].c_str()), g_id);
00614 } else {
00615 data->setValue(GOVERNOR_TTURB,
00616 atof(split_line[31].c_str()), g_id);
00617 }
00618 }
00619
00620
00621 if (nstr > 32) {
00622 if (!data->getValue(GOVERNOR_TRATE,&rval,g_id)) {
00623 data->addValue(GOVERNOR_TRATE,
00624 atof(split_line[32].c_str()), g_id);
00625 } else {
00626 data->setValue(GOVERNOR_TRATE,
00627 atof(split_line[32].c_str()), g_id);
00628 }
00629 }
00630 }
00631
00632
00633
00634
00635
00636
00637 void store(std::vector<std::string> &split_line,_data_struct &data)
00638 {
00639
00640 int o_idx;
00641 o_idx = atoi(split_line[0].c_str());
00642 data.bus_id = o_idx;
00643
00644
00645 gridpack::utility::StringUtils util;
00646 std::string tag = util.clean2Char(split_line[2]);
00647 strcpy(data.gen_id, tag.c_str());
00648
00649 std::string sval;
00650
00651 sval = util.trimQuotes(split_line[1]);
00652 util.toUpper(sval);
00653
00654
00655 strcpy(data.model, sval.c_str());
00656
00657 int nstr = split_line.size();
00658
00659 if (nstr > 3) {
00660 data.db1 = atof(split_line[3].c_str());
00661 }
00662
00663
00664 if (nstr > 4) {
00665 data.err = atof(split_line[4].c_str());
00666 }
00667
00668
00669 if (nstr > 5) {
00670 data.gv_td = atof(split_line[5].c_str());
00671 }
00672
00673
00674 if (nstr > 6) {
00675 data.gv_ki = atof(split_line[6].c_str());
00676 }
00677
00678
00679 if (nstr > 7) {
00680 data.gv_tf = atof(split_line[7].c_str());
00681 }
00682
00683
00684 if (nstr > 8) {
00685 data.gv_kd = atof(split_line[8].c_str());
00686 }
00687
00688
00689 if (nstr > 9) {
00690 data.gv_kp = atof(split_line[9].c_str());
00691 }
00692
00693
00694 if (nstr > 10) {
00695 data.gv_r = atof(split_line[10].c_str());
00696 }
00697
00698
00699 if (nstr > 11) {
00700 data.gv_tt = atof(split_line[11].c_str());
00701 }
00702
00703
00704 if (nstr > 12) {
00705 data.gv_kg = atof(split_line[12].c_str());
00706 }
00707
00708
00709 if (nstr > 13) {
00710 data.gv_tp = atof(split_line[13].c_str());
00711 }
00712
00713
00714 if (nstr > 14) {
00715 data.velopen = atof(split_line[14].c_str());
00716 }
00717
00718
00719 if (nstr > 15) {
00720 data.velclose = atof(split_line[15].c_str());
00721 }
00722
00723
00724 if (nstr > 16) {
00725 data.pmax = atof(split_line[16].c_str());
00726 }
00727
00728
00729 if (nstr > 17) {
00730 data.pmin = atof(split_line[17].c_str());
00731 }
00732
00733
00734 if (nstr > 18) {
00735 data.db2 = atof(split_line[18].c_str());
00736 }
00737
00738
00739 if (nstr > 19) {
00740 data.gv1 = atof(split_line[19].c_str());
00741 }
00742
00743
00744 if (nstr > 20) {
00745 data.pgv1 = atof(split_line[20].c_str());
00746 }
00747
00748
00749 if (nstr > 21) {
00750 data.gv2 = atof(split_line[21].c_str());
00751 }
00752
00753
00754 if (nstr > 22) {
00755 data.pgv2 = atof(split_line[22].c_str());
00756 }
00757
00758
00759 if (nstr > 23) {
00760 data.gv3 = atof(split_line[23].c_str());
00761 }
00762
00763
00764 if (nstr > 24) {
00765 data.pgv3 = atof(split_line[24].c_str());
00766 }
00767
00768
00769 if (nstr > 25) {
00770 data.gv4 = atof(split_line[25].c_str());
00771 }
00772
00773
00774 if (nstr > 26) {
00775 data.pgv4 = atof(split_line[26].c_str());
00776 }
00777
00778
00779 if (nstr > 27) {
00780 data.gv5 = atof(split_line[27].c_str());
00781 }
00782
00783
00784 if (nstr > 28) {
00785 data.pgv5 = atof(split_line[28].c_str());
00786 }
00787
00788
00789 if (nstr > 29) {
00790 data.aturb = atof(split_line[29].c_str());
00791 }
00792
00793
00794 if (nstr > 30) {
00795 data.bturb = atof(split_line[30].c_str());
00796 }
00797
00798
00799 if (nstr > 31) {
00800 data.tturb = atof(split_line[31].c_str());
00801 }
00802
00803
00804 if (nstr > 32) {
00805 data.trate = atof(split_line[32].c_str());
00806 }
00807 }
00808 };
00809 }
00810 }
00811 #endif